home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / scoobybigair.swf / scripts / frame_1 / DoAction_4.as < prev    next >
Text File  |  2007-10-01  |  495b  |  23 lines

  1. function cTimer()
  2. {
  3.    this.startTime = getTimer();
  4. }
  5. cTimer.prototype.restartTimer = function()
  6. {
  7.    this.startTime = getTimer();
  8. };
  9. cTimer.prototype.milliseconds = function()
  10. {
  11.    return getTimer() - this.startTime;
  12. };
  13. cTimer.prototype.seconds = function()
  14. {
  15.    return this.getSeconds();
  16. };
  17. cTimer.prototype.getSeconds = function()
  18. {
  19.    return int((getTimer() - this.startTime) / 1000);
  20. };
  21. gameMC.iReadyScreenTimer = new cTimer();
  22. gameMC.iLevelPauseTimer = new cTimer();
  23.